package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.common.dtos.ArticleHomeDto;
import com.heima.model.common.pojos.article.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     * 文章信息加载
     * @param articleHomeDto 查询条件
     * @param type 1：加载更多  2：加载更新
     * @return
     */
    List<ApArticle> load(@Param("articleHomeDto") ArticleHomeDto articleHomeDto , @Param("type") int type);
}
